Price Discrimination by Negotiation: A Field Experiment in Retail Electricity
David P. Byrne, Leslie A. Martin, Jia Sheen Nah

README - Analysis Code Files

Corresponding author: David Byrne (byrned@unimelb.edu.au)
Prepared by David Byrne, completed April 4, 2022

How To Replicate the Paper's Tables and Figures
1. Save negotiation.do and contracts.csv in directory "DIR"
2. Open negotiation.do and change the working directory in LINE 4 to DIR
3. Run negotiation.do, the tables and figures will output to DIR

Software Used
- Stata 15 MP

Raw Data
- contracts.csv 

Code
- negotiation.do
  - input: contracts.csv data
  - output: paper tables and figures
    -  Table 1: tab1_base.tex
    -  Table 2: tab2_barg.tex
    -  Table 3: tab3_subsidy.tex
    - Figure 2: fig2_billdist.pdf
    - Figure 3: fig3_billdistfirm.pdf

Variables 
- callid: unique call identifier
- caller: unique caller identifier 
- date: date of call 
- cont: contract type identifier (posted, call-in, negotiated)
- cont_call: dummy equaling 1 if a call-in contract 
- cont_neg: dummy equaling 1 if a negotiated contract 
- incumb: dummy equaling 1 if retailer is an incumbent
- retailer: unique retailer identifier 
- exper: a caller's number of previous calls made at time of call
- exper_sq: exper squared 
- totalbill: total annual electricity bill assuming 300 kWh monthly usage 
- log_bill: logarithm of totalbill 
- stage1_switch: dummy equaling 1 if a switcher
- stage1_subs: dummy equaliing 1 if a low-income subsidy recipient 
- stage2_ref_low: dummy equaling 1 if low reference price

